package controller

import (
	"context"
	"swiper/internal/logic"
	"swiper/internal/pb"
)

type SwiperService struct {
	pb.UnimplementedSwiperServer
}

func (s *SwiperService) SwiperList(ctx context.Context, req *pb.SwiperListRequest) (*pb.SwiperListResponse, error) {
	return &pb.SwiperListResponse{
		List: logic.GetSwiperList(req.Status),
	}, nil
}
